package com.tomehay.termprojectmanage_server.service;

import com.tomehay.termprojectmanage_server.pojo.Model.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tomehay.termprojectmanage_server.pojo.VO.ResultVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tomehay
 * @since 2023-06-20
 */
public interface CourseService extends IService<Course> {

    ResultVO<List<Course>> GetUnderGoCoursesByID(int teacherId);

    ResultVO<List<Course>> GetEndedCoursesByID(int teacherId);

    ResultVO<Void> CreateCourse(Course course);

    ResultVO<Void> DeleteCourse(int courseId);

    ResultVO<Void> EndCourse(int id);

    ResultVO<List<Course>> getAllCourse(int id);

    ResultVO<Course> GetOneCoursesByID(int id);

    ResultVO<List<Course>> GetUnderGoCoursesByStudentID(int id);

    ResultVO<List<Course>> GetEndedCoursesByStudentID(int id);
}
